﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Work.BL.Managers;
using Work.UI.Web.Forms.Code.Common;

namespace Work.UI.Web.Forms.Admin.Section
{
    public partial class Sections : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void odsSection_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            ISectionManager  sectionManager = IoCContainer.ServiceLocator.Resolve<ISectionManager>();
            e.ObjectInstance = sectionManager;
        }

        protected void btnInsert_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Admin/Section/Insert.aspx");
        }

        protected void grvSection_OnRowDeleted(object sender, GridViewDeletedEventArgs e)
        {
            Response.Redirect("~/Admin/Section/Sections.aspx");
        }
    }
}